<?php
include dirname(dirname(dirname(__FILE__))).'/admin-verify.php';
include dirname(dirname(__FILE__)).'/functions.php';

$ret = "";
if(!isset($_GET['year'])||!isset($_GET['month'])) {
	$ret = getUserWorkTime(date('Y'),date('m'));
} else {
	$year = addslashes($_GET['year']);
	$month = addslashes($_GET['month']);
	$ret = getUserWorkTime($year,$month);
}
echo $ret;